<?php
define('IN_ADMIN',True);
require_once('include/common.php');
require_once('include/func_inc.php');
if ( !$_USER->id ) {
	show_msg('你还没有登录，请先登录', 'login.php', 1000);
}
//



?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><html>
<title>Office 515158 2011 OA办公系统</title>
<link rel="stylesheet" type="text/css" href="themes01/default/home.css" />
</head>
<body>

   <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="margin:0px;padding:0px; ">
<tr>
    <td align="center" valign="top" style="padding-top:70px;">
		<div class="crm-box">
			  <a href="admin.php?ac=popmail&fileurl=mail" title="邮件"><div class='menu-a' onMouseOver="this.style.top='133px'" onMouseOut="this.style.top='130px'"></div></a>
              <a href="admin.php?ac=index&fileurl=sms" title="短消息"><div class='menu-b' onMouseOver="this.style.top='148px'" onMouseOut="this.style.top='145px'"></div></a>
              <a href="admin.php?ac=index&fileurl=workdate&type=1" title="日程"><div class='menu-c' onMouseOver="this.style.top='153px'" onMouseOut="this.style.top='150px'"></div></a>
              <a href="admin.php?ac=index&fileurl=blog&blogtype=1" title="日记"><div class='menu-d' onMouseOver="this.style.top='158px'" onMouseOut="this.style.top='155px'"></div></a>
              <a href="admin.php?ac=duty&fileurl=duty" title="任务"><div class='menu-e' onMouseOver="this.style.top='153px'" onMouseOut="this.style.top='150px'"></div></a>
              <a href="admin.php?ac=index&fileurl=communication&type=1" title="通迅录"><div class='menu-f' onMouseOver="this.style.top='148px'" onMouseOut="this.style.top='145px'"></div></a>
              <a href="info.php" title="短识库"><div class='menu-g' onMouseOver="this.style.top='133px'" onMouseOut="this.style.top='130px'"></div></a>
              
              </div>
   
	</td>
  <td width="240" valign="top">
      <div class="module listColor">
        <div class="head2">
          <div class="moduleHeader2">公司公告
		  </div>
        </div>
        <div class="module_body">
          <div class="module_div" id="info_div">
          	<ul>
			<?php
			
			global $db;
	        $query = $db->query("SELECT * FROM ".DB_TABLEPRE."news where type='3' ORDER BY id desc limit 0,6");
			while ($row = $db->fetch_array($query)) {
			?>
		<li style='color:#FF0000;'><a href='admin.php?ac=views&fileurl=news&id=<?=$row['id']?>&type=3&muid=10' style='color:#FF0000;'><?=cut_str($row['subject'],24)?></a></li>
			<?php
		   }
		   ?>
            
</ul>
          </div>
        </div>
      </div>
      
      <div class="module listColor">
        <div class="head2">
          <div class="moduleHeader2">公司通知</div>
        </div>
        <div class="module_body">
          <div class="module_div">
          	<ul>
				<?php
			
			global $db;
	        $query = $db->query("SELECT * FROM ".DB_TABLEPRE."news where type='4' ORDER BY id desc limit 0,6");
			while ($row = $db->fetch_array($query)) {
			?>
		<li style='color:#FF0000;'><a href='admin.php?ac=views&fileurl=news&id=<?=$row['id']?>&type=4&muid=10' style='color:#FF0000;'><?=cut_str($row['subject'],22)?></a></li>
			<?php
		   }
		   ?>         	</ul>
			<div style="text-align:right;margin-right:20px;margin-top:5px;"><a href="admin.php?ac=index&fileurl=news&type=4&muid=10">更多 >></a></div>
          </div>
        </div>
      </div>
	</td>
  </tr>
</table>

</body>
</html>